package link.jfire.disqueue.util;

import link.jfire.disqueue.Sequencer;

public class SequenceUtil
{
    public static long min(Sequencer[] sequencers)
    {
        long min = sequencers[0].getCursor();
        for (int i = 0, n = sequencers.length; i < n; i++)
        {
            if (min > sequencers[i].getCursor())
            {
                min = sequencers[i].getCursor();
            }
        }
        return min;
    }
}
